
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <meta name="keywords" content="">
    <meta name="description" content="">

   <link rel="shortcut icon" href="__STATIC__/layout/favicon.ico">
     <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <style>
      #kindPT tbody tr:nth-child(odd){background:#f7f3f7 }
    </style>
</head>

<body style="color:#333;padding:3px;">
    <!-- 标题 -->
   <form action="" class="form-inline" method="get" id="f1">
      <table class="table-bordered table">
        <tr>
          <td>
            省份：
              <select name="sid" id="sid" class="select form-control">
                 <option value="0">请选择</option>
                {volist name="sheng" id="s"}
                <option value="{$s.id}" {if $s.id==$sid} selected{/if}>{$s.title}</option>
                {/volist}
          </select>
              <span class="lr_5"></span>
              财年：
               <select name="cid" id="cid" class="select form-control">
                 {volist name="cainian" id="c"}
                  <option value="{$c.id}" {if $cid==$c.id} selected {/if}>{$c.title}</option>
                 {/volist}
              </select><span class="lr_5"></span><button class="btn-info btn" type="button" id="query"> 查询</button>
        <span class="lr_5"></span><a href="javascript:;" {if $sid} onclick="dc({$cid},{$sid})" {else} onclick="alert('请选择省份')" {/if} class="btn btn-info">导出Excel</a>
          </td>
        </tr>
      </table>
      {if $sid}
	   <table class="table table-bordered" style="border:0;margin:0;" id="costTabHead">
         <tr>
          <td style="border-top:0">
              <p class="font-bold text-center"><span class="selectText"></span> 财年(<span class="selectYear">{$cn.title}</span>)各费用科目投入情况</p>
              <p class="padding-10 text-right">单位(万元)</p>
              
          </td>
        </tr>
     </table>
     
    <table class="table-bordered table text-center bud_hei" id="costTab" >
        <thead>
            <tr class="info">
              <th class="text-center">一级费用科目</th>
              <th class="text-center">二级费用科目</th>
              <th class="text-center">科目</th>
              {volist name="kaohe2" id="k"}
              <th class="text-center">{$k.title}</th>
              {/volist}
              <th class="text-center">小计</th>
              <th class="text-center">平均</th>
              <th class="text-center">占比</th>
            </tr>
        </thead>
        <tbody>
          {volist name="kemu" id="k"}
            <tr class="text-center">
              <td>{$k.kemu1}</td>
              <td>{$k.kemu2}</td>
              <td>{$k.kemu3}</td>
              {volist name="$k.jine" id="j"}
                <td class="ObjectNum">{$j}</td>
              {/volist}
              <td class="ObjectNum">{$k.zjine}</td>
              <td class="ObjectNum">{$k.ajine}</td>
              <td><span class="ObjectNum">{$k.bjine}</span>%</td>
            </tr>
          {/volist}
        </tbody>
        <tfoot>
          <tr class="trTotal">
            <td colspan="15" class="text-right">总计:</td>
            <td class="ObjectNum">{$zong}</td>
            <td class="ObjectNum">{$avg}</td>
            <td></td>
          </tr>
        </tfoot>
    </table>
    {/if}
</form>
   
    <!-- 全局js -->
    <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
     <script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
      <script src="__STATIC__/layout/js/common.js"></script>
    <script>
    function dc(cid,sid){
      window.open("{:url('shengdetdc')}?cid="+cid+"&sid="+sid)
    }
    $("#query").click(function(){
      document.getElementById("f1").submit()
    })
    </script>
</body>

</html>
